<?php 
namespace app\admin\validate;
use think\Validate;

class Ad extends Validate
{
	protected $rule=[
		'name'=>'unique:ad,name,id',
	];
	protected $message=[
		'name'=>'图片名重复',
	];
}